<?php

//error reporting on
ini_set ( "display_errors", 1 );
error_reporting ( E_ALL );

//define the site path
$site_path = realpath ( dirname ( __FILE__ ) );
define ( '__SITE_PATH', $site_path );

//define public path, where are stored css, images....
//TODO try to refactor
define ( '__PUBLIC_PATH', 'http://' . $_SERVER ['HTTP_HOST'] . '/acm/public' );
define ( '__HOST_PATH', 'http://' . $_SERVER ['HTTP_HOST'] . '/acm' );

include 'includes/init.php';

$registry->router = new router ( $registry );
$registry->router->setPath ( __SITE_PATH . '/controller' );
$registry->router->loader ();

?>
